import { createSlice } from '@reduxjs/toolkit'

export const newHouserSlice = createSlice({
    name: 'newHouserSlice',
    initialState: {
        new_house_list: []
    },
    reducers: {
        pushNewHouseList: (state, action) => {
            state.new_house_list = action.payload
        },
    }
})
// 每个 case reducer 函数会生成对应的 Action creators
export const { pushNewHouseList } = newHouserSlice.actions

export default newHouserSlice.reducer